package mqigdcom.mqigd.db;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.List;

@DatabaseTable(tableName = DBHelper.TABLE_ROAD_INFO)
public class RoadInfo {
    @DatabaseField(generatedId = true)
    private int _id;

    @DatabaseField(canBeNull = false)
    private String userid;

    @DatabaseField(canBeNull = false)
    private String road_id;

    @DatabaseField
    private String road_code;

    @DatabaseField
    private String road_name;

    @DatabaseField
    private String start_stake;// 公路起点桩号

    @DatabaseField
    private String end_stake;// 公路终点桩号

    @DatabaseField
    private String length;// 公路长度

    private List<UnitInfo> unit_list;// 单元路线集合

    public int get_id() {
        return _id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getRoad_id() {
        return road_id;
    }

    public void setRoad_id(String road_id) {
        this.road_id = road_id;
    }

    public String getRoad_code() {
        return road_code;
    }

    public void setRoad_code(String road_code) {
        this.road_code = road_code;
    }

    public String getRoad_name() {
        return road_name;
    }

    public void setRoad_name(String road_name) {
        this.road_name = road_name;
    }

    public String getStart_stake() {
        return start_stake;
    }

    public void setStart_stake(String start_stake) {
        this.start_stake = start_stake;
    }

    public String getEnd_stake() {
        return end_stake;
    }

    public void setEnd_stake(String end_stake) {
        this.end_stake = end_stake;
    }

    public String getLength() {
        return length;
    }

    public void setLength(String length) {
        this.length = length;
    }

    public List<UnitInfo> getUnit_list() {
        return unit_list;
    }

    public void setUnit_list(List<UnitInfo> unit_list) {
        this.unit_list = unit_list;
    }
}
